﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmPronosticoImportacion.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmPronosticoImportacion" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="IdeaSparx.CoolControls.Web" Namespace="IdeaSparx.CoolControls.Web"
    TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script type="text/javascript">
    // <![CDATA[




        function ShowPopupReporte() {
            PopupReporte.Show();

        }


        function ShowPopupMsjConfirmacion() {
            PopupMsjConfirmacion.Show();

        }
    // ]]> 
    </script>
    <script type="text/javascript">

        function urlABC() {
            open('AnalisisABC.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=650,status=yes,resizable=yes,scrollbars=yes');
        }
    </script>
    <script type="text/javascript">

        function urlModelo() {
            open('AnalisisModelo.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=650,status=yes,resizable=yes,scrollbars=yes');
        }
    </script>
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

    </script>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Actualizar pronóstico de importación</div>
    </div>
    <div class="content-form">
        <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table>
                    <tr>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnNuevo1" runat="server" Text="Nuevo" OnClick="btnNuevo1_Click"
                                Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <Image Url="~/Images/bt_new_button.gif">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnModificar1" runat="server" Text="Modificar" OnClick="btnModificar1_Click"
                                Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <Image Url="~/Images/edit2.gif">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnAnalizar1" runat="server" Text="Analizar" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" OnClick="btnAnalizar1_Click">
                                <Image Url="~/Images/BarChart.gif">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnAprobacion1" runat="server" Text="Solicitar Aprobación" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" OnClick="btnAprobacion1_Click">
                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = true;
}" />
                                <Image Url="~/Images/email2.png">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btAnanular1" runat="server" Text="Anular" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" OnClick="btAnanular1_Click">
                                <Image Url="~/Images/delete.png">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                        <td class="filas2">
                            <dx:ASPxButton ID="btnSalir1" runat="server" Text="Salir" OnClick="btnSalir1_Click"
                                Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <Image Url="~/Images/logout.png">
                                </Image>
                                <Paddings Padding="4px" />
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxRoundPanel ID="rpFiltro" runat="server" Width="600px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                GroupBoxCaptionOffsetY="-19px" HeaderText="" ShowHeader="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                <HeaderStyle>
                                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                </HeaderStyle>
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent8" runat="server" SupportsDisabledAttribute="True">
                                        <table>
                                            <tr>
                                                <td>
                                                    Año:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxComboBox ID="cboAnio" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="100px">
                                                        <Items>
                                                            <dx:ListEditItem Text="2011" Value="2011" />
                                                            <dx:ListEditItem Text="2012" Value="2012" />
                                                            <dx:ListEditItem Text="2013" Value="2013" />
                                                            <dx:ListEditItem Text="2014" Value="2014" />
                                                        </Items>
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="filas2">
                                                    Estado:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxComboBox ID="cboEstado" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxButton ID="btnfiltrar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnfiltrar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Filtrar" AutoPostBack="False">
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxRoundPanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="top">
                            <dx:ASPxGridView ID="dgPedido" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                Style="width: 100%;" CssPostfix="Office2010Blue" KeyFieldName="NRO_PRONOSTICO"
                                OnPageIndexChanged="dgPedido_PageIndexChanged" OnAfterPerformCallback="dgPedido_AfterPerformCallback"
                                Width="100%">
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="Nro. Pronóstico" FieldName="NRO_PRONOSTICO" VisibleIndex="0"
                                        Width="100px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataDateColumn Caption="Fecha de Pedido" FieldName="FECHA_GEN" VisibleIndex="1"
                                        Width="100px">
                                        <PropertiesDateEdit>
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                        <Settings AllowHeaderFilter="True" />
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataTextColumn Caption="Generado por" FieldName="USER_NEW" VisibleIndex="6"
                                        Width="100px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Actualizado por" FieldName="USER_UPDATE" VisibleIndex="7"
                                        Width="100px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataDateColumn Caption="Última Actualización" FieldName="FEC_UPDATE"
                                        VisibleIndex="8" Width="100px">
                                        <PropertiesDateEdit>
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesDateEdit>
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataTextColumn Caption="Estado" FieldName="NOM_ESTADO" VisibleIndex="10"
                                        Width="100px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_ESTADO" Visible="False" VisibleIndex="9">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Total pronóstico&lt;/br&gt;FOB $" FieldName="total"
                                        VisibleIndex="5" Width="100px">
                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Periodo venta &lt;/br&gt;Inicial" FieldName="ANO_MES_INI"
                                        VisibleIndex="2" Width="100px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Periodo venta&lt;/br&gt;Final" FieldName="ANO_MES_FIN"
                                        VisibleIndex="3" Width="100px">
                                        <PropertiesTextEdit>
                                            <ValidationSettings ErrorText="Valor inválido">
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </PropertiesTextEdit>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ANO_INI" Visible="False" VisibleIndex="11">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ANO_FIN" Visible="False" VisibleIndex="12">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager PageSize="20">
                                    <AllButton Text="All">
                                    </AllButton>
                                    <NextPageButton Text="Next &gt;">
                                    </NextPageButton>
                                    <PrevPageButton Text="&lt; Prev">
                                    </PrevPageButton>
                                </SettingsPager>
                                <Settings ShowFilterRow="True" />
                                <SettingsLoadingPanel Text="Cargando&amp;hellip;" />
                                <SettingsDetail ShowDetailRow="True" />
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                                <Templates>
                                    <DetailRow>
                                        <dx:ASPxPageControl ID="PCParametros" runat="server" ActiveTabIndex="0" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            TabSpacing="0px">
                                            <TabPages>
                                                <dx:TabPage Text="Parámetro reposición">
                                                    <ContentCollection>
                                                        <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                                            <dx:ASPxGridView ID="grdPronosticoParametrosDet" runat="server" AutoGenerateColumns="False"
                                                                ClientInstanceName="grdPronosticoParametrosDet" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" DataSourceID="ObjectDataSource1" OnBeforePerformDataSelect="grdPronosticoParametrosDet_BeforePerformDataSelect">
                                                                <Columns>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_PRONOSTICO_PARAMETROS_REPOSICION" Visible="False"
                                                                        VisibleIndex="0">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="NRO_PRONOSTICO" Visible="False" VisibleIndex="1">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn Caption="Tipo ABC" FieldName="TIPO_ABC" VisibleIndex="2">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <CellStyle HorizontalAlign="Center">
                                                                        </CellStyle>
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn Caption="Nro.días reposición" FieldName="NRO_DIAS_REPOSICION"
                                                                        VisibleIndex="3">
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <CellStyle HorizontalAlign="Center">
                                                                        </CellStyle>
                                                                    </dx:GridViewDataTextColumn>
                                                                </Columns>
                                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanelOnStatusBar>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </Images>
                                                                <ImagesFilterControl>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </ImagesFilterControl>
                                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                    </Header>
                                                                    <LoadingPanel ImageSpacing="5px">
                                                                    </LoadingPanel>
                                                                </Styles>
                                                                <StylesPager>
                                                                    <PageNumber ForeColor="#3E4846">
                                                                    </PageNumber>
                                                                    <Summary ForeColor="#1E395B">
                                                                    </Summary>
                                                                </StylesPager>
                                                                <StylesEditors ButtonEditCellSpacing="0">
                                                                    <ProgressBar Height="21px">
                                                                    </ProgressBar>
                                                                </StylesEditors>
                                                            </dx:ASPxGridView>
                                                        </dx:ContentControl>
                                                    </ContentCollection>
                                                </dx:TabPage>
                                                <dx:TabPage Text="Párametro grupo artículos">
                                                    <ContentCollection>
                                                        <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                                            <dx:ASPxGridView ID="grdGrupoArticulosDet" runat="server" AutoGenerateColumns="False"
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                DataSourceID="ObjectDataSource2" KeyFieldName="ID_PARAMETRO_GRUPO_ARTICULOS"
                                                                OnBeforePerformDataSelect="grdGrupoArticulosDet_BeforePerformDataSelect">
                                                                <Columns>
                                                                    <dx:GridViewDataTextColumn Caption="Grupo artículos" FieldName="DES_GRUPO_ARTICULO"
                                                                        VisibleIndex="1">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_PARAMETRO_GRUPO_ARTICULOS" Visible="False"
                                                                        VisibleIndex="0">
                                                                    </dx:GridViewDataTextColumn>
                                                                </Columns>
                                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanelOnStatusBar>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </Images>
                                                                <ImagesFilterControl>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </ImagesFilterControl>
                                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                    </Header>
                                                                    <LoadingPanel ImageSpacing="5px">
                                                                    </LoadingPanel>
                                                                </Styles>
                                                                <StylesPager>
                                                                    <PageNumber ForeColor="#3E4846">
                                                                    </PageNumber>
                                                                    <Summary ForeColor="#1E395B">
                                                                    </Summary>
                                                                </StylesPager>
                                                                <StylesEditors ButtonEditCellSpacing="0">
                                                                    <ProgressBar Height="21px">
                                                                    </ProgressBar>
                                                                </StylesEditors>
                                                            </dx:ASPxGridView>
                                                        </dx:ContentControl>
                                                    </ContentCollection>
                                                </dx:TabPage>
                                            </TabPages>
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px" />
                                            <ContentStyle>
                                                <Paddings Padding="12px" />
                                                <Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px" />
                                            </ContentStyle>
                                        </dx:ASPxPageControl>
                                    </DetailRow>
                                </Templates>
                            </dx:ASPxGridView>
                            <br />
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="ListaPronosticoParametro"
                                TypeName="Crosland.Automotriz.Facade.Facade.FacadePronosticoImportacion">
                                <SelectParameters>
                                    <asp:SessionParameter Name="NRO_PRONOSTICO" SessionField="NRO_PRONOSTICO" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <br />
                            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="ListaPronosticoParametroGrupoArticulos"
                                TypeName="Crosland.Automotriz.Facade.Facade.FacadePronosticoImportacion">
                                <SelectParameters>
                                    <asp:SessionParameter Name="NRO_PRONOSTICO" SessionField="NRO_PRONOSTICO" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td align="top">
                            <dx:ASPxPopupControl ID="PopupCorreo" runat="server" AllowDragging="True" ClientInstanceName="PopupCorreos"
                                CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" HeaderText="" Height="150px" Modal="True" PopupHorizontalAlign="WindowCenter"
                                PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="500px">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl>
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="filas2">
                                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Primer nivel:" Width="130px">
                                                    </dx:ASPxLabel>
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxComboBox ID="cboPrimerNivel" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings Padding="4px" />
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas2" style="width: 162px">
                                                    Observacion:
                                                </td>
                                                <td class="filas2">
                                                    <dx:ASPxMemo ID="txtobservacion" runat="server" ClientInstanceName="txtobservacion"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Height="71px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="400px">
                                                        <ValidationSettings>
                                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                        </ValidationSettings>
                                                    </dx:ASPxMemo>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr style="width: 100%;">
                                                <td align="right" class="filas2">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" OnClick="btnAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar">
                                                        <ClientSideEvents Click="function(s, e) {
PopupCorreos.Hide();	
e.processOnServer = true;
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="left" class="filas2">
                                                    <dx:ASPxButton ID="btnCancelar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Cancelar">
                                                        <ClientSideEvents Click="function(s, e) {
	PopupCorreos.Hide();
}" />
                                                        <Paddings Padding="4px" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True"
                                ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableHotTrack="False" EnableViewState="False" HeaderText="Mensaje"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent5" runat="server">
                                                    <table style="width: 100%;">
                                                        <tr>
                                                            <td align="center" class="filas2" colspan="2">
                                                                ¿Estas seguro de anular este registro?
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right" class="filas2">
                                                                <dx:ASPxButton ID="btnPopAceptar" runat="server" AutoPostBack="False" ClientInstanceName="btnPopAceptar"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    OnClick="btnPopAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Aceptar" Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
	e.processOnServer = true;
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td align="left" class="filas2">
                                                                <dx:ASPxButton ID="btnPopCancelar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Cancelar" Width="10px">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="PopupReporte" runat="server" AllowDragging="True" ClientInstanceName="PopupReporte"
                                CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableHotTrack="False" EnableViewState="False" HeaderText="Reporte"
                                Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent3" runat="server">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                Ver por
                                                            </td>
                                                            <td>
                                                                <dx:ASPxComboBox ID="cbotipoReporte" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Width="190px">
                                                                    <Items>
                                                                        <dx:ListEditItem Selected="True" Text="Categoria ABC" Value="Categoria ABC" />
                                                                        <dx:ListEditItem Text="Modelo" Value="Modelo" />
                                                                    </Items>
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <ButtonStyle Width="13px">
                                                                    </ButtonStyle>
                                                                    <ValidationSettings>
                                                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                                    </ValidationSettings>
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnAceptarReporte" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" OnClick="btnAceptarReporte_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Ver Reporte">
                                                                    <ClientSideEvents Click="function(s, e) {
e.processOnServer = true;
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnCancelReporte" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Cancelar">
                                                                    <ClientSideEvents Click="function(s, e) {
	PopupReporte.Hide();
}" />
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxPopupControl ID="popupmsj2" runat="server" AllowDragging="True" ClientInstanceName="popupmsj2"
                                CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                EnableHotTrack="False" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="300px">
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                </LoadingPanelImage>
                                <HeaderStyle>
                                    <Paddings PaddingLeft="7px" />
                                </HeaderStyle>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ContentCollection>
                                    <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                                        <br />
                                        <dx:ASPxPanel ID="ASPxPanel9" runat="server" DefaultButton="btCreate">
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent9" runat="server">
                                                    <table align="center">
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue">
                                                                </dx:ASPxLabel>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table align="center">
                                                        <tr>
                                                            <td align="center" style="width: 215px">
                                                                <dx:ASPxButton ID="ASPxButton7" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Aceptar">
                                                                    <ClientSideEvents Click="function(s, e) {popupmsj2.Hide();}" />
                                                                    <Image Url="~/Images/ok.png">
                                                                    </Image>
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxPanel>
                                    </dx:PopupControlContentControl>
                                </ContentCollection>
                            </dx:ASPxPopupControl>
                        </td>
                    </tr>
                </table>
                </div>
                <br />
                <br />
                <asp:Button ID="btnanulacion" runat="server" OnClick="btnanulacion_Click" Text="Button"
                    BorderColor="White" ForeColor="White" Height="1px" Width="1px" />
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
